package org.demo.patten.chain_of_responsibility;

/**
 * @author zhuj
 * @date 2025/3/29
 * @apiNote
 */
public class Supervisor extends Approver{
    @Override
    public void handleRequest(int leaveDays) {
        if (leaveDays <= 2) {
            System.out.println("主管审批：" + leaveDays + "天");
        } else if (next != null) {
            next.handleRequest(leaveDays);
        }
    }
}
